<div class="pad-10" >

    <div class="navigate">
        <h1>下单URL列表</h1>

        <span class="ui-button ui-button-morange fr">
                <a class="ui-button-text fr"  href="/index.php/Admin/Keywords/add">添加</a>
        </span>

        <span class="ui-button ui-button-morange fr" style="margin-right:10px;">
                <a class="ui-button-text fr"  href="javascript:URL_Random_Sort();">随机排序</a>
        </span>

        <span class="ui-button ui-button-morange fr" style="margin-right:10px;">
                <a class="ui-button-text fr"  href="javascript:keywordsDisabled(1);">禁用选择项</a>
        </span>

        <span class="ui-button ui-button-morange fr" style="margin-right:10px;">
                <a class="ui-button-text fr"  href="javascript:keywordsDisabled(0);">启用选择项</a>
        </span>


	</div>


    <div class="explain-col">

        &nbsp;平台:
        <select name="plantform_id" id="plantform_id" class="form-select" style="width:80px;">
            <option value="0">不限</option>
            <volist name="plantforms" id="p">
                <option value="{$p.plantform_id}"<if condition="$p['plantform_id'] eq $plantform_id"> selected</if>>{$p.plantform_name}</option>
            </volist>
        </select>


        &nbsp;查询条件:
        <select id="search">
            <option value="" <if condition="$search eq ''">selected="selected"</if>>不限</option>
            <volist name="keywords_search" id="s">
                <option value="{$s.item}" <if condition="$search eq $s['item']">selected="selected"</if>>{$s.name}</option>
            </volist>
        </select>

        &nbsp;查询内容 :
        <input name="keywords" id="keywords" type="text" class="input-text" size="25" value="{$search_keywords}" />
        <input type="submit" name="btnSearch" id="btnSearch" class="button" value="搜索" />
    </div>


    <div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th style="width:40px;">
                    <input type="checkbox" id="check_all" />
                </th>
                <th style="width:60px;" style="font-size:12px;">编号</th>
                <th style="width:120px;">平台</th>
                <th style="width:80px;">下单URL</th>
                <th style="width:120px;">备注</th>
                <th style="width:60px;">排序</th>
                <th style="width:30px;">管理员</th>
                <th style="width:60px;">状态</th>
                <th style="width:120px;">添加日期</th>
                <th style="width:120px;">最后分配日期</th>
                <th style="width:60px;">操作</th>
            </tr>
        </thead>
    	<tbody>
        <volist name="keywords" id="k" >
        <tr>
            <td align="center">
                <input type="checkbox" id="chb_{$k.id}" name="check_keywords" value="{$k.id}" />
            </td>
        	<td align="center">{$k.id}</td>
        	 <td align="center">
            	{$k.plantform_name}
            </td>  
            <td align="left">
            	<a href="{$k.url}" target="_blank">{$k.url}</a>
            </td>
            <td align="left">
                {$k.remark}
            </td>
            <td align="center">
                {$k.sort}
            </td>
            <td align="center">
            	{$k.real_name}
            </td>            
            <td align="center">
	            <if condition="$k.disabled eq 1">
					<span class="keywords_disabled color-red pointer" id="disabled-{$k.id}">禁用</span>
				<else />
					<span class="keywords_disabled color-green pointer" id="disabled-{$k.id}">启用</span>
				</if>
            </td>
            <td align="center">
            	{$k.created}
            </td>
            <td align="center">
                {$k.last_use_time}
            </td>
            <td align="center">
            	<a href="/index.php/Admin/Keywords/detail?id={$k.id}" class="blue" target="_self">编辑</a>
            </td>
        </tr>
        </volist>
    	</tbody>
    </table>



        <div class="btn">
            <include file="Common:pager" />
        </div>


    </div>

</div>

<script type="text/javascript" src="/Js/common.js"></script>
<script type="text/javascript" src="/Js/adm/keywords/index.js"></script>